package cn.com.kgc;


    public class MyRunnable implements Runnable {
        public void run() {
            for (int i = 0; i < 50; i++) {
                System.out.println("new"+i);
            }
        }
        public static void main(String[] args) {

            /*Runnable my= new MyRunnable();
            Thread t1=new Thread(my);
            t1.start();*/
            new Thread(new MyRunnable()).start();
            for (int i = 0; i < 100; i++) {
                System.out.println("main" +i);
            }
        }
    }


